/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package id3;

import java.util.ArrayList;
import java.util.StringTokenizer;

/**
 *
 * @author SONY VAIO
 */
public class AttributeDetail {

    public int id;
    public int size;
    public String nama;
    public ArrayList<String> list_value;

    public AttributeDetail(int _id, String _nama, String line){
        this.id = _id;
        this.nama = _nama;
        list_value = new ArrayList<String>();
        StringTokenizer st = new StringTokenizer(line, ",");
        this.size = st.countTokens();
        for(int i = 0; i < this.size; ++i){
            String token = st.nextToken();
            list_value.add(token);
        }
    }

    public void PrintListValue(){
        System.out.print(this.nama + " : ");
        for(int i = 0; i < list_value.size(); ++i){
            System.out.print(list_value.get(i));
        }
        System.out.println();
    }
}
